package com.ocom.exposeapi.feign;


import com.ocom.common.constant.ExposeApiUrl;
import com.ocom.common.request.emqx.DoorResponse;
import com.ocom.common.request.emqx.FyRequest;
import com.ocom.common.resp.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "emqx")
public interface EmqxClientService {

	@PostMapping(ExposeApiUrl.URL_ExposeApi_FangYi)
	Result fangyi(@RequestBody FyRequest fyRequest);

	@PostMapping(ExposeApiUrl.URL_ExposeApi_GetLock)
	public DoorResponse getAroundLock(@RequestParam("message") String message,@RequestParam("machNo") String machNo,@RequestParam("sign") String sign);

}
